<template>
	<view class="container">
		<view class="card" :style="{ backgroundImage: 'url(' + bg + ')' }">
			<view class="phb">
				排行榜
			</view>
			<view class="hongbao u-m-l-150  u-p-t-30">
				张三的10个红包
			</view>
		</view>
		<view class="list u-m-t-75">
			<view class="item u-m-t-75">
				<view class="left">
					<view class="dot">
						<image src="../../static/img/paimingimg.png"></image>
					</view>
				</view>
				<view class="center">
					<view class="title">华晨宇</view>
					<view class="time">2020-08-21 18:51</view>
				</view>
				<view class="righttwo u-m-t-30">
					<view class="amountmoney">18.00</view>
					<view class="amount">手气最佳</view>
				</view>
			</view>
			<view class="item" v-for="(item,index) in 7" :key="index">
				<view class="left">
					<view class="dot">
						<image src="../../static/img/paimingimg.png"></image>
					</view>
				</view>
				<view class="center">
					<view class="title">华晨宇</view>
					<view class="time">2020-08-21 18:51</view>
				</view>
				<view class="right">
					<view class="amount">6.00</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				bg: '../../static/img/paihang.png',
			}
		},
		methods: {

		}
	}
</script>

<style scoped lang="scss">
	page {
		background-color: #ffffff;
	}

	.container {

		// padding: 0 30upx;
		.card {
			width: 130%;
			height: 370rpx;
			margin-left: -100px;
			background-size: 100% auto;
			// background-repeat: no-repeat;
			background-position: left 150rpx top -90rpx;

			.phb {
				font-size: 74rpx;
				font-weight: bold;
				color: #FFFFFF;
				margin-left: 270rpx;
				padding-top: 150rpx;
			}

			.hongbao {
				font-size: 28rpx;
				color: #FFFFFF;
				opacity: 0.6;
				margin-left: 270rpx;
			}
		}

		.list {
			width: 100%;
			// border: 1px solid;
			border-radius: 40rpx 40rpx 0px 0px;
			position: absolute;
			top: 280rpx;

			.item {
				width: 100%;
				height: 130upx;
				background-color: #fff;
				border-radius: 20upx;
				margin-bottom: 20upx;
				display: flex;
				padding: 0rpx 24rpx;
				justify-content: space-between;
				border-bottom: 1px solid #DADFED;
				;

				.right {
					display: flex;
					align-items: center;

					.amount {
						width: 100%;
						color: #0D1D36;
						font-size: 34rpx;
						text-align: right;
						margin-right: 15rpx;

					}
				}

				.righttwo {
					display: flex;
					flex-direction: column;
					align-items: center;

					.amountmoney {
						font-size: 34rpx;

						color: #AB61FF;
					}

					.amount {

						font-size: 24rpx;
						color: #FF9E21;
					}
				}

				.center {
					margin-left: 24rpx;
					display: flex;
					flex-direction: column;
					padding: 20upx 0;
					justify-content: space-between;
					flex: 1;

					.title {
						color: #0E1E36;
						font-size: 32rpx;
					}

					.time {
						color: #888E9A;
						font-size: 26rpx;
					}
				}

				.left {
					display: flex;
					align-items: center;

					.dot image {
						width: 104rpx;
						height: 120rpx;
					}
				}
			}
		}
	}
</style>
